shuzi = "0123456789"
zimu = "qwertyuioplkjhgfdsazxcvbnmMNBVCXZLKJHGFDSAPOIUYTREWQ"
fuhao = '''~!@#$%^&*()_+-=[]{};'\:"|,./<>?'''

# 低级密码要求：
# 1. 密码由单纯的数字或字母组成
# 2. 或密码长度小于等于8位
# 高级密码要求：
# 1. 密码由数字、字母组合
# 2. 并且密码长度高于8位
passwd = input("请输入密码输入 : ")
length = len(passwd)

# 判断是否是空
while  passwd.isspace() or length == 0:
    passwd = input("密码为空，请重新输入:")
    length = len(passwd)

#  判断长度
passwdLength = 0
if length < 8:
    passwdLength = 1
else :
    passwdLength = 2

# 判断密码组合
passwdcon = 0
for i in passwd:
    if i in shuzi:
        passwdcon += 1
        break
for i in passwd:
    if i in zimu:
        passwdcon += 1
        break
for i in passwd:
    if i in fuhao:
        passwdcon += 1
        break

# 输出密码等级
while 1:
    print("您的密码等级为:")
    if passwdLength == 1 or passwdcon == 1:
        print("初级")
    elif passwdLength == 2 and passwdcon == 2 and i not in fuhao :
        print("高级")
    else :
        print("不符合类型")
    break
